import request from '@/utils/request'

// 获取订单分页数据
export const getOrderPage = (data) => {
  return request({
    method: 'post',
    url: '/order-manager/order/page',
    data
  })
}
// 获取省份
export const getProvinceApi = () => {
  return request({
    method: 'get',
    url: '/areas/children'
  })
}

// 获取城市
export const getCityApi = (id) => {
  return request({
    method: 'get',
    url: '/areas/children',
    params: {
      parentId: id
    }
  })
}

// 获取订单详情
export const getOrderInfo = (id) => {
  return request({
    method: 'get',
    url: `/order-manager/order/${id}`
    // params: {
    //   parentId: id
    // }
  })
}
// 更新货物信息
export const getGoodsInfo = (id) => {
  return request({
    method: 'get',
    url: `/order-manager/cargo${id}`

  })
}
